#include "Server.hpp"
void Usage(char *argv0)
{
    printf("Usage:\n\t%s server_port\n\n", argv0);
    exit(0);
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
    }
    uint16_t server_port = std::stoi(argv[1]);

    // 定义server
    Server ser(server_port);
    // 初始化server
    ser.Init();
    // 启动server
    ser.Start();
    return 0;
}